package com.demo.transaction.lcn.common.spring;

import com.codingapi.txlcn.tc.support.DTXUserControls;
import com.codingapi.txlcn.tracing.TracingContext;
import org.springframework.stereotype.Component;

@Component
public class ServiceCFallback implements ServiceCClient {
    @Override
    public String rpc(String name) {
        DTXUserControls.rollbackGroup(TracingContext.tracing().groupId());
        return "service c fallback";
    }
}
